package com.jiechuang.user.service.impl;


import com.jiechuang.common.bean.User;
import com.jiechuang.user.mapper.LoginMapper;
import com.jiechuang.user.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LoginServiceImpl implements LoginService {
    @Autowired
    private LoginMapper loginMapper;
    @Override
    public User login(String username, String password) {
        return loginMapper.selectUserByUsernameAndPassword(username,password);
    }
}
